package com.prs.crm.service.cdxh.impl;

import java.io.Serializable;
import java.util.List;

import com.prs.crm.dao.cdxh.MaterialProductDao;
import com.prs.crm.domain.cdxh.MaterialProduct;
import com.prs.crm.service.cdxh.MaterialProductService;
import com.prs.crm.service.impl.BaseServiceImpl;

/**
 * @author LanXiaoGang
 * @E-mail:lan9liang@163.com
 * @qq:7857553326
 * @version 创建时间：2010-12-3 下午04:34:59
 * 简单说明
 */

public class MaterialProductServiceImpl extends
		BaseServiceImpl<MaterialProduct, MaterialProductDao> implements
		MaterialProductService {

	@Override
	public void saveOrMaterialProduct(MaterialProduct materialProduct) {
		this.getDao().saveOrMaterialProduct(materialProduct);
	}

	@Override
	public MaterialProduct getMaterialProduct(Serializable id) {
		// TODO Auto-generated method stub
		return this.getDao().getMaterialProduct(id);
	}

	@Override
	public MaterialProduct getMaterialProductOrPro(String orderplan,
			String productCode) {
		// TODO Auto-generated method stub
		return this.getDao().getMaterialProductOrPro(orderplan, productCode);
	}

	@Override
	public MaterialProduct getMaterialProductOrProAndFirst(String orderplan,
			String productCode) {
		// TODO Auto-generated method stub
		return this.getDao().getMaterialProductOrProAndFirst(orderplan, productCode);
	}

	@Override
	public List<MaterialProduct> getMaterialProductOrderpLan(String orderplan) {
		
		return this.getDao().getMaterialProductOrderpLan(orderplan);
	}

	@Override
	public MaterialProduct getMP(String orderplan, String productCode,
			int pLstate) {
		// TODO Auto-generated method stub
		return this.getDao().getMP(orderplan, productCode, pLstate);
	}

	@Override
	public MaterialProduct getMaterialProductByProductCode(String productCode) {
		// TODO Auto-generated method stub
		return this.getDao().getMaterialProductByProductCode(productCode);
	}

}
